package com.xt.LibaryDeskManager.dao;

import com.xt.LibaryDeskManager.dto.UserMessage;
import com.xt.LibaryDeskManager.vo.LoginVo;
import com.xt.LibaryDeskManager.vo.UpdateVo;
import org.springframework.stereotype.Repository;

@Repository
public interface AdminMapper {
    /**
     * 根据工号和密码查找管理员
     * @param loginVo
     * @return
     */
    UserMessage selectByLogin(LoginVo loginVo)throws Exception;

    /**
     * 更新管理员信息
     * @param updateVo
     * @return
     * @throws Exception
     */
    int updateAdmin(UpdateVo updateVo) throws  Exception;
}
